﻿using System;
using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class RepairItem
    {
        private static readonly IRepairItem dal = DALFactory.DataAccess.CreateRepairItem();

        public IList<RepairItemInfo> GetRepairItembyLastSN(string productSN)
        {
            return dal.GetRepairItembyLastSN(productSN);
        }

        public RepairItemInfo GetRepairItembyLastSNStep(string productSN, string repairStep)
        {
            return dal.GetRepairItembyLastSNStep(productSN, repairStep);
        }

        public IList<RepairItemInfo> GetRepairItembySNDT(string productSN, DateTime recordTime)
        {
            return dal.GetRepairItembySNDT(productSN, recordTime);
        }

        public IList<RepairItemInfo> GetRepairItembySN(string productSN)
        {
            return dal.GetRepairItembySN(productSN);
        }

        public IList<RepairItemInfo> GetRepairItembyPackageSN(string packageSN)
        {
            return dal.GetRepairItembyPackageSN(packageSN);
        }
    }
}
